<script>
  if (window.opener) {
    window.opener.postMessage({
      "name": window.name,
      "isTop": window.top === window
    }, "*");
  }
</script>
